<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>模型目录</title>
</head>
<body>
<script>
    const  modelListStr  = `[
    {
        "id": 4,
        "name": "客户数据模型",
        "description": "",
        "categoryId": 5,
        "owner": "zhangmj01",
        "locked": false,
        "deleted": false,
        "currentVersion": 119,
        "createdOn": 1660631661447,
        "lastModificationTimestamp": 1661406377565,
        "lastModifier": "zhangmj01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 1742,
        "phase": 4,
        "useProto": true,
        "objCount": 864,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 5,
        "name": "员工系统账户",
        "description": "",
        "categoryId": 1078,
        "owner": "lixl07",
        "locked": false,
        "deleted": false,
        "currentVersion": 15,
        "createdOn": 1661128240841,
        "lastModificationTimestamp": 1661154194035,
        "lastModifier": "lixl07",
        "frozen": false,
        "modelType": "Hive",
        "seed": 28,
        "phase": 0,
        "useProto": true,
        "objCount": 26,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 7,
        "name": "MDW（主数据）模型",
        "description": "",
        "categoryId": 1181,
        "owner": "zhangmj01",
        "locked": false,
        "deleted": false,
        "currentVersion": 3803,
        "createdOn": 1661237550916,
        "lastModificationTimestamp": 1685497141780,
        "lastModifier": "lixl07",
        "frozen": false,
        "modelType": "Hive",
        "seed": 27351,
        "phase": 0,
        "useProto": true,
        "objCount": 9937,
        "shared": true,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 15,
        "name": "数据资产平台",
        "description": "数据资产平台",
        "categoryId": 516,
        "owner": "caolei",
        "locked": false,
        "deleted": false,
        "currentVersion": 18,
        "createdOn": 1661501971393,
        "lastModificationTimestamp": 1678701833389,
        "lastModifier": "lixl07",
        "frozen": false,
        "modelType": "MySQL",
        "seed": 1132,
        "phase": 0,
        "useProto": true,
        "objCount": 1084,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 16,
        "name": "鲲鹏计划-投顾",
        "description": "",
        "categoryId": 5,
        "owner": "zhangmj01",
        "locked": false,
        "deleted": false,
        "currentVersion": 46,
        "createdOn": 1661752452916,
        "lastModificationTimestamp": 1681982702622,
        "lastModifier": "zhangmj01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 2243,
        "phase": 0,
        "useProto": true,
        "objCount": 1044,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 19,
        "name": "dev",
        "description": "此分支基于分支 master",
        "categoryId": 516,
        "owner": "caolei",
        "referredModelId": 15,
        "locked": false,
        "deleted": false,
        "currentVersion": 58,
        "createdOn": 1661922874532,
        "lastModificationTimestamp": 1667278976830,
        "lastModifier": "caolei",
        "frozen": false,
        "modelType": "MySQL",
        "seed": 1277,
        "phase": 0,
        "useProto": true,
        "objCount": 1155,
        "shared": false,
        "limitedDsApply": false,
        "branch": true
    },
    {
        "id": 27,
        "name": "IBM_EDW",
        "description": "",
        "categoryId": 1181,
        "owner": "zhangmj01",
        "locked": false,
        "deleted": false,
        "currentVersion": 9,
        "createdOn": 1662345821008,
        "lastModificationTimestamp": 1673270563513,
        "lastModifier": "zhangmj01",
        "frozen": false,
        "modelType": "MySQL",
        "seed": 34469,
        "phase": 0,
        "useProto": true,
        "objCount": 34464,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 28,
        "name": "DWS(指标标准层)",
        "description": "",
        "categoryId": 1181,
        "owner": "gaotian",
        "locked": false,
        "deleted": false,
        "currentVersion": 398,
        "createdOn": 1662354441167,
        "lastModificationTimestamp": 1685325087837,
        "lastModifier": "zhangmj01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 4754,
        "phase": 0,
        "useProto": true,
        "objCount": 2032,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 35,
        "name": "test",
        "description": "此分支基于分支 master",
        "categoryId": 3,
        "owner": "zhangmj01",
        "referredModelId": 27,
        "locked": false,
        "deleted": false,
        "currentVersion": 3,
        "createdOn": 1663654860259,
        "lastModificationTimestamp": 1663658097483,
        "lastModifier": "zhangmj01",
        "frozen": false,
        "modelType": "MySQL",
        "seed": 34586,
        "phase": 0,
        "useProto": true,
        "objCount": 34581,
        "shared": false,
        "limitedDsApply": false,
        "branch": true
    },
    {
        "id": 46,
        "name": "汇报模型",
        "description": "",
        "categoryId": 1164,
        "owner": "zhangmj01",
        "locked": false,
        "deleted": false,
        "currentVersion": 47,
        "createdOn": 1666595098330,
        "lastModificationTimestamp": 1676015307284,
        "lastModifier": "zhangmj01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 734,
        "phase": 0,
        "useProto": true,
        "objCount": 485,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 49,
        "name": "鲲鹏信用",
        "description": "",
        "categoryId": 1167,
        "owner": "liujj01",
        "locked": false,
        "deleted": false,
        "currentVersion": 1,
        "createdOn": 1666861674438,
        "lastModificationTimestamp": 1666861674821,
        "lastModifier": "liujj01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 368,
        "phase": 0,
        "useProto": true,
        "objCount": 240,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 50,
        "name": "信用业务日报-收入统计表",
        "description": "",
        "categoryId": 1167,
        "owner": "liujj01",
        "locked": false,
        "deleted": false,
        "currentVersion": 4,
        "createdOn": 1667210541594,
        "lastModificationTimestamp": 1675132564980,
        "lastModifier": "xingqh",
        "frozen": false,
        "modelType": "Hive",
        "seed": 837,
        "phase": 0,
        "useProto": true,
        "objCount": 680,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 51,
        "name": "鲲鹏信用1",
        "description": "",
        "categoryId": 1167,
        "owner": "liujj01",
        "locked": false,
        "deleted": false,
        "currentVersion": 3,
        "createdOn": 1667284044958,
        "lastModificationTimestamp": 1667284556499,
        "lastModifier": "liujj01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 436,
        "phase": 0,
        "useProto": true,
        "objCount": 257,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 53,
        "name": "fix_credit_mtss",
        "description": "此分支基于分支 master",
        "categoryId": 1167,
        "owner": "wangkai05",
        "referredModelId": 51,
        "locked": false,
        "deleted": false,
        "currentVersion": 65,
        "createdOn": 1667296401804,
        "lastModificationTimestamp": 1676968584816,
        "lastModifier": "wangkai05",
        "frozen": false,
        "modelType": "Hive",
        "seed": 786,
        "phase": 0,
        "useProto": true,
        "objCount": 334,
        "shared": false,
        "limitedDsApply": false,
        "branch": true
    },
    {
        "id": 56,
        "name": "收益凭证监管报送",
        "description": "",
        "categoryId": 1169,
        "owner": "wangkai05",
        "locked": false,
        "deleted": false,
        "currentVersion": 129,
        "createdOn": 1667461320339,
        "lastModificationTimestamp": 1683786922148,
        "lastModifier": "wangkai05",
        "frozen": false,
        "modelType": "Hive",
        "seed": 2769,
        "phase": 0,
        "useProto": true,
        "objCount": 731,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 57,
        "name": "数据魔方",
        "description": "",
        "categoryId": 514,
        "owner": "shenzb",
        "locked": false,
        "deleted": false,
        "currentVersion": 2,
        "createdOn": 1667461605464,
        "lastModificationTimestamp": 1679900411648,
        "lastModifier": "lixl07",
        "frozen": false,
        "modelType": "MySQL",
        "seed": 8859,
        "phase": 0,
        "useProto": true,
        "objCount": 8859,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 63,
        "name": "prod",
        "description": "此分支基于分支 master",
        "categoryId": 3,
        "owner": "zhangmj01",
        "referredModelId": 7,
        "locked": false,
        "deleted": false,
        "currentVersion": 719,
        "createdOn": 1668074967428,
        "lastModificationTimestamp": 1668074968126,
        "lastModifier": "zhangmj01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 6181,
        "phase": 0,
        "useProto": true,
        "objCount": 1091,
        "shared": false,
        "limitedDsApply": false,
        "branch": true
    },
    {
        "id": 71,
        "name": "fix-rename",
        "description": "此分支基于分支 master",
        "categoryId": 1169,
        "owner": "wangkai05",
        "referredModelId": 56,
        "locked": false,
        "deleted": false,
        "currentVersion": 79,
        "createdOn": 1673253034394,
        "lastModificationTimestamp": 1673253034931,
        "lastModifier": "wangkai05",
        "frozen": false,
        "modelType": "Hive",
        "seed": 1882,
        "phase": 0,
        "useProto": true,
        "objCount": 626,
        "shared": false,
        "limitedDsApply": false,
        "branch": true
    },
    {
        "id": 72,
        "name": "FMDWM82-张明军",
        "description": "",
        "categoryId": 1164,
        "owner": "zhangmj01",
        "locked": false,
        "deleted": false,
        "currentVersion": 10,
        "createdOn": 1673271209102,
        "lastModificationTimestamp": 1673849391724,
        "lastModifier": "zhangmj01",
        "frozen": false,
        "modelType": "MySQL",
        "seed": 34469,
        "phase": 0,
        "useProto": true,
        "objCount": 33383,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 73,
        "name": "营销活动",
        "description": "",
        "categoryId": 1176,
        "owner": "huohx",
        "locked": false,
        "deleted": false,
        "currentVersion": 24,
        "createdOn": 1673320741078,
        "lastModificationTimestamp": 1681175727419,
        "lastModifier": "huohx",
        "frozen": false,
        "modelType": "Hive",
        "seed": 2480,
        "phase": 0,
        "useProto": true,
        "objCount": 1067,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 74,
        "name": "测试",
        "description": "",
        "categoryId": 1164,
        "owner": "zhangmj01",
        "locked": false,
        "deleted": false,
        "currentVersion": 2,
        "createdOn": 1673508291127,
        "lastModificationTimestamp": 1673508357441,
        "lastModifier": "zhangmj01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 107,
        "phase": 0,
        "useProto": true,
        "objCount": 107,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 75,
        "name": "EDW模型",
        "description": "",
        "categoryId": 1164,
        "owner": "zhangmj01",
        "locked": false,
        "deleted": false,
        "currentVersion": 5,
        "createdOn": 1673850349750,
        "lastModificationTimestamp": 1673859362665,
        "lastModifier": "zhangmj01",
        "frozen": false,
        "modelType": "MySQL",
        "seed": 27854,
        "phase": 0,
        "useProto": true,
        "objCount": 27849,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 77,
        "name": "应用系统模型",
        "description": "",
        "categoryId": 1164,
        "owner": "zhangmj01",
        "locked": false,
        "deleted": false,
        "currentVersion": 10,
        "createdOn": 1674969529272,
        "lastModificationTimestamp": 1677226033689,
        "lastModifier": "zhangmj01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 83,
        "phase": 0,
        "useProto": true,
        "objCount": 68,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 79,
        "name": "应用系统模型",
        "description": "",
        "categoryId": 1104,
        "owner": "zhangmj01",
        "locked": false,
        "deleted": false,
        "currentVersion": 33,
        "createdOn": 1675230146511,
        "lastModificationTimestamp": 1682062172148,
        "lastModifier": "zhangmj01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 8135,
        "phase": 0,
        "useProto": true,
        "objCount": 4409,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 82,
        "name": "接口平台",
        "description": "",
        "categoryId": 1177,
        "owner": "lixl07",
        "locked": false,
        "deleted": false,
        "currentVersion": 1,
        "createdOn": 1675739099545,
        "lastModificationTimestamp": 1675739170777,
        "lastModifier": "lixl07",
        "frozen": false,
        "modelType": "Greenplum",
        "seed": 3,
        "phase": 3,
        "useProto": true,
        "objCount": 2,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 83,
        "name": "线上投顾大屏",
        "description": "",
        "categoryId": 1179,
        "owner": "huohx",
        "locked": false,
        "deleted": false,
        "currentVersion": 5,
        "createdOn": 1675767884502,
        "lastModificationTimestamp": 1676022406632,
        "lastModifier": "huohx",
        "frozen": false,
        "modelType": "Hive",
        "seed": 176,
        "phase": 0,
        "useProto": true,
        "objCount": 173,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 86,
        "name": "金融产品鲲鹏计划",
        "description": "",
        "categoryId": 1176,
        "owner": "huohx",
        "locked": false,
        "deleted": false,
        "currentVersion": 3,
        "createdOn": 1676946726513,
        "lastModificationTimestamp": 1682405983787,
        "lastModifier": "huohx",
        "frozen": false,
        "modelType": "Hive",
        "seed": 2162,
        "phase": 3,
        "useProto": true,
        "objCount": 1687,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 87,
        "name": "信用业务日报-收入统计表",
        "description": "",
        "categoryId": 1184,
        "owner": "huohx",
        "locked": false,
        "deleted": false,
        "currentVersion": 1,
        "createdOn": 1676947246435,
        "lastModificationTimestamp": 1676947247286,
        "lastModifier": "huohx",
        "frozen": false,
        "modelType": "Hive",
        "seed": 837,
        "phase": 0,
        "useProto": true,
        "objCount": 680,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 88,
        "name": "鲲鹏信用1",
        "description": "",
        "categoryId": 1176,
        "owner": "liujj01",
        "locked": false,
        "deleted": false,
        "currentVersion": 3,
        "createdOn": 1667284044958,
        "lastModificationTimestamp": 1667284556499,
        "lastModifier": "liujj01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 436,
        "phase": 0,
        "useProto": true,
        "objCount": 257,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 89,
        "name": "fix_credit_mtss",
        "description": "此分支基于分支 master",
        "categoryId": 1176,
        "owner": "wangkai05",
        "referredModelId": 88,
        "locked": false,
        "deleted": false,
        "currentVersion": 64,
        "createdOn": 1667296401804,
        "lastModificationTimestamp": 1676422778157,
        "lastModifier": "wangkai05",
        "frozen": false,
        "modelType": "Hive",
        "seed": 786,
        "phase": 0,
        "useProto": true,
        "objCount": 334,
        "shared": false,
        "limitedDsApply": false,
        "branch": true
    },
    {
        "id": 90,
        "name": "基金投顾",
        "description": "",
        "categoryId": 1185,
        "owner": "huohx",
        "locked": false,
        "deleted": false,
        "currentVersion": 2,
        "createdOn": 1676947663709,
        "lastModificationTimestamp": 1681115449254,
        "lastModifier": "huohx",
        "frozen": false,
        "modelType": "Hive",
        "seed": 144,
        "phase": 0,
        "useProto": true,
        "objCount": 127,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 92,
        "name": "风控类-客户日内回转基金信息",
        "description": "",
        "categoryId": 1166,
        "owner": "liujj01",
        "locked": false,
        "deleted": false,
        "currentVersion": 1,
        "createdOn": 1676949335203,
        "lastModificationTimestamp": 1676949335484,
        "lastModifier": "liujj01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 17,
        "phase": 0,
        "useProto": true,
        "objCount": 17,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 94,
        "name": "公司级考核T001",
        "description": "",
        "categoryId": 1183,
        "owner": "huohx",
        "locked": false,
        "deleted": false,
        "currentVersion": 16,
        "createdOn": 1676957188961,
        "lastModificationTimestamp": 1682303825314,
        "lastModifier": "shuaiss",
        "frozen": false,
        "modelType": "Hive",
        "seed": 125,
        "phase": 0,
        "useProto": true,
        "objCount": 123,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 97,
        "name": "信用数据分析",
        "description": "",
        "categoryId": 1180,
        "owner": "huohx",
        "locked": false,
        "deleted": false,
        "currentVersion": 2,
        "createdOn": 1676958424236,
        "lastModificationTimestamp": 1676958478418,
        "lastModifier": "huohx",
        "frozen": false,
        "modelType": "Hive",
        "seed": 22,
        "phase": 0,
        "useProto": true,
        "objCount": 22,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 98,
        "name": "master2.0",
        "description": "此分支基于分支 fix_credit_mtss",
        "categoryId": 1167,
        "owner": "wangkai05",
        "referredModelId": 51,
        "locked": false,
        "deleted": false,
        "currentVersion": 86,
        "createdOn": 1676968662635,
        "lastModificationTimestamp": 1681821899730,
        "lastModifier": "wangkai05",
        "frozen": false,
        "modelType": "Hive",
        "seed": 816,
        "phase": 0,
        "useProto": true,
        "objCount": 363,
        "shared": false,
        "limitedDsApply": false,
        "branch": true
    },
    {
        "id": 99,
        "name": "标签模型",
        "description": "",
        "categoryId": 1104,
        "owner": "gaocs",
        "locked": false,
        "deleted": false,
        "currentVersion": 10,
        "createdOn": 1677043102633,
        "lastModificationTimestamp": 1681182555383,
        "lastModifier": "tengjy",
        "frozen": false,
        "modelType": "Logical",
        "seed": 156,
        "phase": 0,
        "useProto": true,
        "objCount": 144,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 105,
        "name": "SDOM逻辑模型_数据域",
        "description": "",
        "categoryId": 1190,
        "owner": "liuwc01",
        "locked": false,
        "deleted": false,
        "currentVersion": 61,
        "createdOn": 1678430858177,
        "lastModificationTimestamp": 1683248615475,
        "lastModifier": "zhangmj01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 8924,
        "phase": 0,
        "useProto": true,
        "objCount": 8459,
        "shared": true,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 106,
        "name": "风险日报",
        "description": "",
        "categoryId": 1195,
        "owner": "wangkai05",
        "locked": false,
        "deleted": false,
        "currentVersion": 2,
        "createdOn": 1678756478269,
        "lastModificationTimestamp": 1678944594764,
        "lastModifier": "wangkai05",
        "frozen": false,
        "modelType": "Hive",
        "seed": 322,
        "phase": 0,
        "useProto": true,
        "objCount": 206,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 107,
        "name": "行业模型-自己理解",
        "description": "",
        "categoryId": 1164,
        "owner": "zhangmj01",
        "locked": false,
        "deleted": false,
        "currentVersion": 30,
        "createdOn": 1678774332194,
        "lastModificationTimestamp": 1678781114928,
        "lastModifier": "zhangmj01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 8785,
        "phase": 0,
        "useProto": true,
        "objCount": 8091,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 108,
        "name": "SDOM逻辑模型_业务线",
        "description": "",
        "categoryId": 1190,
        "owner": "liuwc01",
        "locked": false,
        "deleted": false,
        "currentVersion": 1,
        "createdOn": 1678864508741,
        "lastModificationTimestamp": 1678864516892,
        "lastModifier": "liuwc01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 8313,
        "phase": 0,
        "useProto": true,
        "objCount": 8313,
        "shared": true,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 109,
        "name": "公司考核类(E:\\\\模型\\\\保证金息差汇总.ddmx)",
        "description": "",
        "categoryId": 1183,
        "owner": "huohx",
        "locked": false,
        "deleted": false,
        "currentVersion": 10,
        "createdOn": 1678963612013,
        "lastModificationTimestamp": 1679453737562,
        "lastModifier": "huohx",
        "frozen": false,
        "modelType": "Hive",
        "seed": 112,
        "phase": 0,
        "useProto": true,
        "objCount": 109,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 111,
        "name": "标签项目模型",
        "description": "",
        "categoryId": 1104,
        "owner": "tengjy",
        "locked": false,
        "deleted": false,
        "currentVersion": 31,
        "createdOn": 1679044709245,
        "lastModificationTimestamp": 1684287996519,
        "lastModifier": "tengjy",
        "frozen": false,
        "modelType": "MySQL",
        "seed": 956,
        "phase": 0,
        "useProto": true,
        "objCount": 549,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 112,
        "name": "单一需求",
        "description": "",
        "categoryId": 1187,
        "owner": "shuaiss",
        "locked": false,
        "deleted": false,
        "currentVersion": 21,
        "createdOn": 1679368693795,
        "lastModificationTimestamp": 1683883025590,
        "lastModifier": "huohx",
        "frozen": false,
        "modelType": "Hive",
        "seed": 279,
        "phase": 0,
        "useProto": true,
        "objCount": 276,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 115,
        "name": "监管报送",
        "description": "",
        "categoryId": 1169,
        "owner": "huohx",
        "locked": false,
        "deleted": false,
        "currentVersion": 57,
        "createdOn": 1679626964053,
        "lastModificationTimestamp": 1685005383963,
        "lastModifier": "huohx",
        "frozen": false,
        "modelType": "Hive",
        "seed": 384,
        "phase": 0,
        "useProto": true,
        "objCount": 329,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 116,
        "name": "模型评审及标准化",
        "description": "",
        "categoryId": 1088,
        "owner": "wangkai05",
        "locked": false,
        "deleted": false,
        "currentVersion": 33,
        "createdOn": 1679667238192,
        "lastModificationTimestamp": 1684990637177,
        "lastModifier": "wangkai05",
        "frozen": false,
        "modelType": "Hive",
        "seed": 1807,
        "phase": 0,
        "useProto": true,
        "objCount": 1426,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 117,
        "name": "统一资讯库（TDH）",
        "description": "",
        "categoryId": 1181,
        "owner": "lixl07",
        "locked": false,
        "deleted": false,
        "currentVersion": 8,
        "createdOn": 1679899856358,
        "lastModificationTimestamp": 1679973430011,
        "lastModifier": "fuhx",
        "frozen": false,
        "modelType": "Hive",
        "seed": 114,
        "phase": 0,
        "useProto": true,
        "objCount": 111,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 119,
        "name": "统一资讯库（TiDB）",
        "description": "",
        "categoryId": 1181,
        "owner": "lixl07",
        "locked": false,
        "deleted": false,
        "currentVersion": 19,
        "createdOn": 1679972393899,
        "lastModificationTimestamp": 1685496843797,
        "lastModifier": "hanyj",
        "frozen": false,
        "modelType": "TiDB",
        "seed": 579,
        "phase": 0,
        "useProto": true,
        "objCount": 522,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 123,
        "name": "信用对账单",
        "description": "",
        "categoryId": 1166,
        "owner": "wangkai05",
        "locked": false,
        "deleted": false,
        "currentVersion": 34,
        "createdOn": 1680484206460,
        "lastModificationTimestamp": 1684220688589,
        "lastModifier": "wangkai05",
        "frozen": false,
        "modelType": "Hive",
        "seed": 740,
        "phase": 0,
        "useProto": true,
        "objCount": 226,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 124,
        "name": "SDOM抽象模型_按业务展示",
        "description": "",
        "categoryId": 1190,
        "owner": "liuwc01",
        "locked": false,
        "deleted": false,
        "currentVersion": 1,
        "createdOn": 1680780791262,
        "lastModificationTimestamp": 1680780796132,
        "lastModifier": "liuwc01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 6720,
        "phase": 0,
        "useProto": true,
        "objCount": 6720,
        "shared": true,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 125,
        "name": "zmj",
        "description": "此分支基于分支 master",
        "categoryId": 1181,
        "owner": "zhangmj01",
        "referredModelId": 7,
        "locked": false,
        "deleted": false,
        "currentVersion": 2971,
        "createdOn": 1680829932119,
        "lastModificationTimestamp": 1680857952281,
        "lastModifier": "zhangmj01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 22502,
        "phase": 0,
        "useProto": true,
        "objCount": 7288,
        "shared": false,
        "limitedDsApply": false,
        "branch": true
    },
    {
        "id": 128,
        "name": "xtpdbv4",
        "description": "",
        "categoryId": 1206,
        "owner": "xuhao",
        "locked": false,
        "deleted": false,
        "currentVersion": 5,
        "createdOn": 1681106411519,
        "lastModificationTimestamp": 1684317594037,
        "lastModifier": "huangzy03",
        "frozen": false,
        "modelType": "MySQL",
        "seed": 2664,
        "phase": 0,
        "useProto": true,
        "objCount": 2524,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 134,
        "name": "feature1",
        "description": "此分支基于分支 master",
        "categoryId": 1206,
        "owner": "xuhao",
        "referredModelId": 128,
        "locked": false,
        "deleted": false,
        "currentVersion": 3,
        "createdOn": 1683165686418,
        "lastModificationTimestamp": 1683165686434,
        "lastModifier": "xuhao",
        "frozen": false,
        "modelType": "MySQL",
        "seed": 7,
        "phase": 0,
        "useProto": true,
        "objCount": 5,
        "shared": false,
        "limitedDsApply": false,
        "branch": true
    },
    {
        "id": 138,
        "name": "123",
        "description": "此分支基于分支 master",
        "categoryId": 5,
        "owner": "zhangmj01",
        "referredModelId": 16,
        "locked": false,
        "deleted": false,
        "currentVersion": 46,
        "createdOn": 1683169854850,
        "lastModificationTimestamp": 1683169855584,
        "lastModifier": "zhangmj01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 2243,
        "phase": 0,
        "useProto": true,
        "objCount": 1044,
        "shared": false,
        "limitedDsApply": false,
        "branch": true
    },
    {
        "id": 140,
        "name": "Model_1",
        "description": "",
        "categoryId": 1180,
        "owner": "liujj01",
        "locked": false,
        "deleted": false,
        "currentVersion": 1,
        "createdOn": 1683529945825,
        "lastModificationTimestamp": 1683529946390,
        "lastModifier": "liujj01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 1252,
        "phase": 0,
        "useProto": true,
        "objCount": 251,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 141,
        "name": "Model_3(Store:\\\\中泰证券\\\\大数据中心\\\\数据治理组\\\\信用客户画像.ddm?branch=master?version=1.0?record=7)",
        "description": "",
        "categoryId": 1104,
        "owner": "tengjy",
        "locked": false,
        "deleted": false,
        "currentVersion": 1,
        "createdOn": 1683795346590,
        "lastModificationTimestamp": 1683795347353,
        "lastModifier": "tengjy",
        "frozen": false,
        "modelType": "MySQL",
        "seed": 956,
        "phase": 0,
        "useProto": true,
        "objCount": 551,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 142,
        "name": "信用大屏v2",
        "description": "",
        "categoryId": 1180,
        "owner": "huohx",
        "locked": false,
        "deleted": false,
        "currentVersion": 2,
        "createdOn": 1684154419757,
        "lastModificationTimestamp": 1684205600829,
        "lastModifier": "huohx",
        "frozen": false,
        "modelType": "Hive",
        "seed": 288,
        "phase": 0,
        "useProto": true,
        "objCount": 281,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 144,
        "name": "元模型",
        "description": "",
        "categoryId": 1164,
        "owner": "zhangmj01",
        "locked": false,
        "deleted": false,
        "currentVersion": 44,
        "createdOn": 1684313016970,
        "lastModificationTimestamp": 1685014030290,
        "lastModifier": "zhangmj01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 640,
        "phase": 0,
        "useProto": true,
        "objCount": 558,
        "shared": false,
        "limitedDsApply": false,
        "branch": false
    },
    {
        "id": 145,
        "name": "base0517",
        "description": "此分支基于分支 master",
        "categoryId": 1206,
        "owner": "huangzy03",
        "referredModelId": 128,
        "locked": false,
        "deleted": false,
        "currentVersion": 6,
        "createdOn": 1684314990628,
        "lastModificationTimestamp": 1684316074621,
        "lastModifier": "huangzy03",
        "frozen": false,
        "modelType": "MySQL",
        "seed": 2626,
        "phase": 0,
        "useProto": true,
        "objCount": 2619,
        "shared": false,
        "limitedDsApply": false,
        "branch": true
    },
    {
        "id": 146,
        "name": "cl_prod",
        "description": "此分支基于分支 master",
        "categoryId": 1181,
        "owner": "caolei",
        "referredModelId": 7,
        "locked": false,
        "deleted": false,
        "currentVersion": 3727,
        "createdOn": 1684391081268,
        "lastModificationTimestamp": 1685000234365,
        "lastModifier": "caolei",
        "frozen": false,
        "modelType": "Hive",
        "seed": 26620,
        "phase": 0,
        "useProto": true,
        "objCount": 9503,
        "shared": false,
        "limitedDsApply": false,
        "branch": true
    },
    {
        "id": 147,
        "name": "gaolp",
        "description": "此分支基于分支 master",
        "categoryId": 1181,
        "owner": "gaolp",
        "referredModelId": 7,
        "locked": false,
        "deleted": false,
        "currentVersion": 3628,
        "createdOn": 1684398594493,
        "lastModificationTimestamp": 1685353329158,
        "lastModifier": "gaolp",
        "frozen": false,
        "modelType": "Hive",
        "seed": 26502,
        "phase": 0,
        "useProto": true,
        "objCount": 9552,
        "shared": false,
        "limitedDsApply": false,
        "branch": true
    },
    {
        "id": 148,
        "name": "zmj",
        "description": "此分支基于分支 master",
        "categoryId": 1181,
        "owner": "zhangmj01",
        "referredModelId": 28,
        "locked": false,
        "deleted": false,
        "currentVersion": 396,
        "createdOn": 1684722578526,
        "lastModificationTimestamp": 1685325396740,
        "lastModifier": "zhangmj01",
        "frozen": false,
        "modelType": "Hive",
        "seed": 4505,
        "phase": 0,
        "useProto": true,
        "objCount": 1726,
        "shared": false,
        "limitedDsApply": false,
        "branch": true
    },
    {
        "id": 150,
        "name": "cl_prod_demo",
        "description": "此分支基于分支 master",
        "categoryId": 1181,
        "owner": "caolei",
        "referredModelId": 7,
        "locked": false,
        "deleted": false,
        "currentVersion": 3703,
        "createdOn": 1685000255533,
        "lastModificationTimestamp": 1685012095812,
        "lastModifier": "caolei",
        "frozen": false,
        "modelType": "Hive",
        "seed": 28604,
        "phase": 0,
        "useProto": true,
        "objCount": 9931,
        "shared": false,
        "limitedDsApply": false,
        "branch": true
    },
    {
        "id": 151,
        "name": "cl_prod_61_mkt",
        "description": "此分支基于分支 master",
        "categoryId": 1181,
        "owner": "caolei",
        "referredModelId": 7,
        "locked": false,
        "deleted": false,
        "currentVersion": 3750,
        "createdOn": 1685338426348,
        "lastModificationTimestamp": 1685431658034,
        "lastModifier": "caolei",
        "frozen": false,
        "modelType": "Hive",
        "seed": 27250,
        "phase": 0,
        "useProto": true,
        "objCount": 9867,
        "shared": false,
        "limitedDsApply": false,
        "branch": true
    }
]`
    const modelListJSON1 = JSON.parse(modelListStr)

    console.log("原数据：", modelListJSON1)

    // /**
    //  * 查询所有 父节点+子节点  父子->孩子格式的JSON
    //  * @return
    //  */
    // @Override
    // public List<Col> findColAndChildren() {
    //     List<Col> colList = colMapper.selectColList(new Col());
    //     if (colList==null || colList.size()<=0){
    //         return null;
    //     }
    //     LinkedList<Col> colLinkedList = new LinkedList<>();
    //     colList.forEach(data->{
    //         if(data.getParentId() == 0L){
    //             colLinkedList.add(data);
    //         }
    //     });
    //
    //     colLinkedList.forEach(data->{
    //         data.setChildren(getChildren(data.getColId(), colList));
    //     });
    //     return colLinkedList;
    // }
    /**
     * referredModelId : 父ID    id：子id
     * modelListJSON : 上一步的tableData
     * @returns {[]}
     */
    function findColAndChildren(modelListJSON) {
        if (!modelListJSON || modelListJSON.length<=0){
            return null
        }

        let colList =  []
        for (const model of modelListJSON) {
            let referredModelId = model.referredModelId
            if(referredModelId){
                // 有值 说明是子节点， 不做处理
            }else {
                // 说明是父节点
                colList.push(model)
            }
        }
        for (let col of colList) {
            col.children = getChildren(col.id, modelListJSON)
        }
        return colList
    }

    /**
     * 寻找孩子节点
     * @param referredModelId 父节点
     * @param modelListJSON 上一步的tableData
     */
    function getChildren(referredModelId, modelListJSON) {
        // 孩子集合
        let childList = []
        for (const model of modelListJSON) {
            let childReferredModelId = model.referredModelId
            if(childReferredModelId){
                if (referredModelId === childReferredModelId) {
                    childList.push(model)
                }
            }
        }
        // 递归退出条件
        if (childList.length === 0){
            return null
        }
        // 把子菜单的子菜单再递归循环一遍
        for (let child of childList) {
            child.children = getChildren(child.id, modelListJSON)
        }
        return childList
    }

    console.log('findColAndChildren', findColAndChildren(JSON.parse(modelListStr)))
    
    //
    // //递归获取children节点
    // private List<Col> getChildren(Long parentId,List<Col> colList) {
    //     //孩子集合
    //     LinkedList<Col> colLinkedList = new LinkedList<>();
    //     colList.forEach(data->{
    //         if (parentId.equals(data.getParentId())) {
    //             colLinkedList.add(data);
    //         }
    //     });
    //     // 递归退出条件
    //     if (colLinkedList.size() == 0){
    //         return null;
    //     }
    //     // 把子菜单的子菜单再递归循环一遍
    //     colLinkedList.forEach(data->{
    //         data.setChildren(getChildren(data.getColId(),colList));
    //     });
    //     return colLinkedList;
    // }



</script>
</body>
</html>